package oop3;

/**
 * @author oldliu
 * @since 1.0
 */
public class Dog {
    public String color;
    public String name;
    public static int Legs=4;//4条腿
    public Dog(String n,String c){
        this.name=n;
        this.color=c;
    }
    public void show(){
        System.out.println("这条狗叫"+name+",颜色是"+color+"，有"+Legs+"条腿");
    }
    public static void printLegs(){
        System.out.println("所有的狗都是"+Legs+"条腿！");
       // System.out.println(name);
    }
}
